package com.thalesgroup.nl.trtdelft.dein.mapper.example;

import com.thalesgroup.nl.trtdelft.dein.mapper.AbstractMappedWebService;
import java.io.Serializable;

/**
 *
 * @author AbdelhaqA
 */
public class Aip extends AbstractMappedWebService {


    @Override
    public void start() {
 
        // queryReceive from  Login
        String listOfHotels = (String) queryReceiveVariableContent.get("listOfHotels");
        String listOfRestaurants = (String) queryReceiveVariableContent.get("listOfRestaurants");
        // output to Login
        outputs.put("listOfHotels", listOfHotels); 
        outputs.put("listOfRestaurants", listOfRestaurants);    
       // sendMapperInformationInterface.sendOutput();
    }
    @Override
    @SuppressWarnings("unchecked")
    public void input(String senderAddress, String inputVariableName, Serializable input) {
        
    }

    @Override
    public void computeOutput() throws IllegalStateException {
    }

    @Override
    public void computeOutput(String variableName) throws IllegalStateException {
        computeOutput();
    }

    @Override
    public Serializable getCurrentOutput(String variableName) throws IllegalStateException {
        return outputs.get(variableName);
    }

}